package com.zlc.common.core.resource.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zlc.common.core.resource.model.entity.MayanPlatResourceRole;
import com.zlc.common.core.resource.model.vo.MayanPlatSystemResourceVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author  zl
 * @date 2023-05-08 
 */
@Mapper
public interface MayanPlatResourceRoleMapper extends BaseMapper<MayanPlatResourceRole> {


    int deleteByResourceId(@Param(value = "resourceId") String resourceId);


    int deleteByRoleCode(@Param(value = "roleCode") String roleCode);

    List<MayanPlatSystemResourceVo> getResourceByRoleCodeAndSystemCode(@Param(value = "roleCodes")List<String> roleCodes,
                                                                       @Param(value = "systemCode")String systemCode);
}
